﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ModuleITDesk.DAL;
using ModuleITDesk.DAL.Model;
namespace ModuleITDesk.BLL
{
    public class BLLUsers
    {
        DALUser userDAL = new DALUser();
        public User GetUserById(int id)
        {
            return userDAL.GetUserByID(id);
        }
        public bool InserUser(User user)
        {
            return userDAL.InsertUsers(user);
        }
        public bool UpdateUser(User user)
        {
            return userDAL.UpdateUsers(user);
        }
        public bool DeleteUser(User user)
        {
            return userDAL.DeleteUser(user);
        }
        public bool ChangedPassword(string username, string oldpass, string newpass)
        {
            return userDAL.ChangedPassword(username, oldpass, newpass);
        }
    }
}
